import argparse, json
# 1
parser = argparse.ArgumentParser(description='test')

parser.add_argument('--sparse', action='store_true', default=False, help='GAT with sparse version or not.')
parser.add_argument('-s', '--seed', type=int, default=72, help='Random seed.')
parser.add_argument('-e', '--epochs', type=int, default=10000, help='Number of epochs to train.')


parser.add_argument('-c', '--conf', dest='conf', required=True)
args = parser.parse_args()

with open(args.conf, 'r') as f:
    conf = json.load(f)
diff = dict()
print(type(diff))
print("{}".format(args.seed*args.epochs))
print(json.dumps(conf, indent=3))
# 如果我们创建两个解释器对象，会出错。所以一般创建一个解释器Argumentparser对象
